/*
 * Copyright 2025 arisgo@163.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.arisgo.cloud.auth.sys.service;

import com.arisgo.cloud.common.Pagination;
import com.arisgo.cloud.web.mybatis.service.ICloudService;
import com.arisgo.cloud.auth.sys.entity.User;
import com.arisgo.cloud.auth.sys.vo.UserVo;
import com.arisgo.cloud.web.param.Paging;
import com.arisgo.cloud.web.param.Search;

import java.util.List;

/**
 * 用户
 *
 * @author Arisgo
 * @since 2024-08-03
 */
public interface UserService extends ICloudService<User, UserVo> {

    boolean isExistsUser(String username);

    UserVo findUserByAccount(String username);

    Pagination<UserVo> pageUser(Paging paging);

    Boolean insert(String username);

    Boolean modify(Long id, Integer status);

    Boolean drop(Long id);

    Boolean drop(List<Long> ids);

    Boolean del(List<Long> ids);

    List<UserVo> findUserByParams(Search search);

    UserVo findUserById(Long id);

    Boolean isLock(Long id, Integer status);
}
